package net.yla.smartbus.module.ba.right.admin.service;

import com.alibaba.fastjson.JSONObject;
import net.yla.smartbus.core.base.PageBean;
import net.yla.smartbus.module.ba.right.admin.dto.IPRecordDTO;
import net.yla.smartbus.module.ba.right.admin.entity.AdminLoginTracesDO;
import net.yla.smartbus.module.ba.right.admin.query.IPCount;
import net.yla.smartbus.module.ba.right.admin.query.IPQuery;

import java.util.List;

/**
 * @Date: 2020-08-17 16:18
 * @Author: Being Nobody
 * @Version: 1.0
 */
public interface AdminLoginTracesService {


    int deleteByPrimaryKey(Integer traceId);

    int insert(AdminLoginTracesDO record);

    int insertSelective(AdminLoginTracesDO record);

    AdminLoginTracesDO selectByPrimaryKey(Integer traceId);

    int updateByPrimaryKeySelective(AdminLoginTracesDO record);

    int updateByPrimaryKey(AdminLoginTracesDO record);

    AdminLoginTracesDO selectByLoginIP(long ip1);

    int ipOfCount(IPCount count);

    List<JSONObject> ipOfQuery(IPQuery query);

    JSONObject ipOfView(Integer traceId);
}
